package cn.edu.glut.user.service;

import cn.edu.glut.dto.UserIntro;
import cn.edu.glut.entity.User;

public interface UserDetailService {
	static final int TYPE_STUDENT = 0;	//学生
	static final int TYPE_TEACHER = 1;	//老师
	static final int TYPE_ADMIN = 2;	//管理员
	static final int TYPE_SECRETARY = 3;	//秘书
	
	User toLogin(String username, String password, int userType);

	int changePassword(UserIntro user, String oldPwd, String newPwd);
}
